 const userInfoReducer = (state = userInfo, action) => {
  switch (action.type) {
      case 'commitUserInfo': return Object.assign({}, state, Object.assign({}, action.data));
      default: return state;
  }
}

const userInfo = {
  userName: '',
  passWord: '',
  userId: ''
}

export {
  userInfoReducer
}